package com.fengye.api;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;
import springfox.documentation.oas.annotations.EnableOpenApi;

/**
 * GGBlogApplication
 *
 * @author 枫叶fy
 * @description 启动类
 * @since 2024/2/24 22:14
 */
@EnableScheduling
@SpringBootApplication
@ComponentScan(basePackages = {"com.fengye.*"})
// basePackages = {"com.fengye.service.mapper", "com.fengye.security.mapper"}
@MapperScan(basePackages = {"com.fengye.security.mapper", "com.fengye.api.mapper"})
public class ApiApplication {
    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(ApiApplication.class, args);
        System.out.println(run);
    }
}
